{% extends 'cms/cms_base.html' %}

{% block content_title %}
个人信息
{% endblock %}

{% block title %}
六月论坛-个人信息
{% endblock %}

{% block content %}
<table class="table table-bordered">
<tr>
    <td>用户名：</td>
    <td>{{ g.cms_user.username }}</td>
</tr>
<tr>
    <td>邮箱：</td>
    <td>{{ g.cms_user.email }}</td>
</tr>
<tr>
    <td>角色：</td>
    <td>{% for role in g.cms_user.roles %}{{ role.name }}{% if not loop.last %},{% endif %}{% endfor %}</td>
</tr>
<tr>
    <td>权限：</td>
    <td>{% for role in g.cms_user.roles %}{{ loop.index }} 、{{ role.desc }}。{% endfor %}</td>
</tr>
<tr>
    <td>创建时间：</td>
    <td>{{ g.cms_user.add_time }}</td>
</tr>
</table>
{% endblock %}